import { Bounds } from "leafer-ui";
import { BlackType } from ".";
import { Black } from "./black";
import { mainMap } from "./map";
export class StaticBlack extends Black {
  bounds: Bounds | undefined;
  constructor({ x, y, width, height, targter, isRadiusPoint }: BlackType) {
    super({ x, y, width, height, targter, isRadiusPoint });
    mainMap.addMapBlack(this);
  }
  remove() {
    this.targter.destroy();
    mainMap.removeMapBlack(this);
  }
}
